package com.md.youyouhui.net.repo;

import android.arch.lifecycle.LiveData;

import com.md.youyouhui.common.Resource;
import com.md.youyouhui.net.ApiServiceFac;
import com.md.youyouhui.utils.calladapter.ResourceConvertUtils;

/**
 * Created by AdministratorZJ
 * on 2018/5/25.
 */

public class PayMoneyRepo {
    private static PayMoneyRepo INSTANCE;

    public static PayMoneyRepo newInstance() {
        if (null == INSTANCE) {
            INSTANCE = new PayMoneyRepo();
        }
        return INSTANCE;
    }


    public LiveData<Resource<Object>> payMoney(String qbId, String totalPayment, String accountOilCardId, String accountCouponId, String payType) {
        return ResourceConvertUtils.convertResource(ApiServiceFac.get().payMoney(qbId, totalPayment, accountOilCardId, accountCouponId, payType));
    }


}
